package com.yuyou.activity.group.service.service;

import java.util.List;

import com.yuyou.activity.group.service.entity.ActivityGroupJob;
import com.yuyou.activity.group.service.entity.ActivityGroupUser;
import com.yuyou.activity.group.service.entity.ActivityGroupbuyOrder;

public interface IActivityGroupJobService {
    int deleteByPrimaryKey(Long id);

    int insert(ActivityGroupJob record);

    ActivityGroupJob selectByPrimaryKey(Long id);

    List<ActivityGroupJob> findLoadedJob(Long allotTempId);

    int updateByPrimaryKeySelective(ActivityGroupJob record);

    int updateLoadedJob(Long allotTempId);

    int updateJobStatus(Long fId,Integer type,String tag,Integer status,String remark);

    void insertJob(List<ActivityGroupUser> list , List<ActivityGroupJob> jobs);

    /**
     * 批量插入job表，批量更新ActivityGroupbuyOrder表
     * tag：1、更新短信通知状态至待处理；2、更新同步状态至待处理
     * @param list
     * @param jobs
     * @param tag
     */
    void insertJobShipin(List<ActivityGroupbuyOrder> list , List<ActivityGroupJob> jobs , Integer tag);

    void updateJob(Integer status , Long id , String remark);


}